﻿using System;
namespace MShop.Core.Domain
{
    public interface INode<T>:INode
    {  
        T Parent { get; }

        System.Collections.Generic.IEnumerable<T> ChildNodes { get;  }
    }

    public interface INode
    {
        int Depth { get; }
        bool HasChild { get; }
        bool IsRoot { get; }
        int NodeId { get; set; }
        string TableRowClass { get; }
        string TableRowId { get; }

         int? ParentId { get; }

        object Key { get; }

        
    }
}
